package com.qiyeji.real_estate.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;

@HeadRowHeight(50)// 设置表头高度
@ColumnWidth(40)
public class StaffPerformance {
    @ExcelProperty(value = {"日期"}, index = 0)
    private String date;

    @ExcelProperty(value = {"员工编号"}, index = 1)
    private String scode;

    @ExcelProperty(value = {"员工姓名"}, index = 2)
    private String sname;

    @ExcelProperty(value = {"职位"}, index = 3)
    private String job;

    @ExcelProperty(value = {"完成项目数"}, index = 4)
    private int numOfProject = 0;

    @ExcelProperty(value = {"工作时长"}, index = 5)
    private String hoursOfWork = "0";


    public StaffPerformance(String date, String scode, String sname, int numOfProject, String hoursOfWork) {
        this.date = date;
        this.scode = scode;
        this.sname = sname;
        this.numOfProject = numOfProject;
        this.hoursOfWork = hoursOfWork;
    }

    public StaffPerformance(String date, String scode, String sname, String job, int numOfProject, String hoursOfWork) {
        this.date = date;
        this.scode = scode;
        this.sname = sname;
        this.job = job;
        this.numOfProject = numOfProject;
        this.hoursOfWork = hoursOfWork;
    }

    public StaffPerformance() {
    }

    public void setDate(String date) {
        this.date = date;
    }

    public void setScode(String scode) {
        this.scode = scode;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public void setNumOfProject(int numOfProject) {
        this.numOfProject = numOfProject;
    }

    public void setHoursOfWork(String hoursOfWork) {
        this.hoursOfWork = hoursOfWork;
    }

    public String getDate() {
        return date;
    }

    public String getScode() {
        return scode;
    }

    public String getSname() {
        return sname;
    }

    public String getJob() {
        return job;
    }

    public int getNumOfProject() {
        return numOfProject;
    }

    public String getHoursOfWork() {
        return hoursOfWork;
    }

    @Override
    public String toString() {
        return "StaffPerformance{" +
                "date='" + date + '\'' +
                ", scode='" + scode + '\'' +
                ", sname='" + sname + '\'' +
                ", job='" + job + '\'' +
                ", numOfProject=" + numOfProject +
                ", hoursOfWork='" + hoursOfWork + '\'' +
                '}';
    }
}
